// import with ES6
import { defineNuxtPlugin } from "nuxt/app";
import VueLazyLoad from "vue-lazyload";

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(VueLazyLoad, {
    // preLoad: 1.33, //预加载高度比例
    // error: errorimage, //加载失败时图像的src
    // loading: loadimage, //加载时图像的src
    attempt: 2,
    throttleWait: 500,
  });
});
